#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
int main(int argc,char *argv[])
{
	FILE *fp;
	char ch;
	char str[16];
	int i=0,j;	
	if((fp = fopen(argv[1],"r"))==NULL)
	{	
		printf("Failure to open %s !\n",argv[0]);
		exit(0);
	}
	while((ch=fgetc(fp))!=EOF&&(!iscntrl(ch)))
	{	
		str[i]=ch;
		i++;
		if(i==16)
		{
			i=0;
			for(j=0;j<16;j++)
			printf("%4d",str[j]);
			printf("\n");
			for(j=0;j<16;j++)
			printf("%4c",str[j]);
			printf("\n");
		}
	}
	for(j=0;j<i;j++)
        printf("%4d",str[j]);
	printf("\n");
        for(j=0;j<i;j++)
        printf("%4c",str[j]);
	printf("\n");
	fclose(fp);
	return 0;
}
